-
-
Notifications
You must be signed in to change notification settings - Fork 42
Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 3 | Implement Shell Tools #244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 3 | Implement Shell Tools #244
Conversation
|
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above. |
1 similar comment
|
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above. |
|
Your PR description contained template fields which weren't filled in. Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed. If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work on these tasks, sorry for the late review
I've left comments in some areas where you could improve your code
| program | ||
| .name("myls") | ||
| .description("Custom implementation of ls") | ||
| .option("-1", "list one file per line (default in our version)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if -1 is the default, how can you test with this turned off?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LonMcGregor thank you .Good point — since this implementation only supports -1 output, I’ve made the -1 flag required rather than treating it as a default. This makes the behaviour explicit and testable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work making these changes. You've made this now a required flag. What does this mean? If the flag is always required and always active, how would you test the alternative, of having the output on a single line?
Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 3 | Implement Shell Tools
Learners, PR Template
Self checklist
Changelist
Commander: cat → view file contents, ls → list files/folders, wc → count lines/words/characters.
Questions
I know Linux and Unix commands may behave slightly differently. I ran these commands (cat, ls, wc) on my Mac — if you are running on other operating rather than unix ,Would you take that into consideration?